package io.gitee.zhangbinhub.admin.deploy.entity

import com.mybatisflex.annotation.Id
import com.mybatisflex.annotation.Table
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty

@Table("t_deploy")
@ApiModel("部署任务")
data class DeployTask(
    @Id
    var id: String = "",
    @ApiModelProperty(name = "任务名称")
    var name: String = "",
    @ApiModelProperty(name = "脚本文件")
    var scriptFile: String = "",
    @ApiModelProperty(name = "参数文件")
    var paramFile: String? = null,
    @ApiModelProperty(name = "执行的服务器IP正则表达式")
    var serverIpRegex: String? = null,
    @ApiModelProperty(name = "备注")
    var remarks: String? = null,
    @ApiModelProperty(name = "创建人账号")
    var createLoginNo: String = "",
    @ApiModelProperty(name = "创建人名称")
    var createUserName: String = "",
    @ApiModelProperty(name = "创建时间")
    var createTime: Long = 0,
    @ApiModelProperty(name = "执行人账号")
    var execLoginNo: String? = null,
    @ApiModelProperty(name = "执行人名称")
    var execUserName: String? = null,
    @ApiModelProperty(name = "执行时间")
    var execTime: Long? = null
)